home *** CD-ROM | disk | FTP | other *** search
/ Tux Racer / Tux Racer.iso / setup.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2001-12-14  |  368b  |  21 lines

  1. #!/bin/sh
  2.  
  3. # Tux Racer Linux Install Script
  4.  
  5. script=$0
  6.  
  7. count=0
  8. while [ -L "$script" ] ; do
  9.     script=`perl -e "print readlink(\"$script\"), \"\n\""`
  10.     count=`expr $count + 1`
  11.  
  12.     if [ $count -gt 100 ] ; then
  13.        echo "Too many symbolic links"
  14.        exit 1
  15.     fi
  16. done
  17.  
  18. dir=`dirname $script`
  19. cd $dir/"program files/Sunspire Studios/Tux Racer"
  20. exec sh setup.sh
  21.